﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.Goods;
using Coldairarrow.Util;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Goods
{
    public interface IBTB_GoodsBusiness
    {
        Task<PageResult<BTB_GoodsDto>> GetGoodsList(PageInput<BTB_GoodsDto> input);
        Task<BTB_Goods> GetTheDataAsync(string id);
        object GetTheData(string id);
        Task<List<BTB_GoodsDto>> GetDataList(string id);
        Task<BTB_GoodsDto> GetsGootDataAsync(string id);
        Task AddDataAsync(BTB_Goods data);
        Task AddThisData(BTB_GoodsDto data);
        Task UpdateDataAsync(BTB_Goods data);
        Task UpdateData(BTB_GoodsDto data);
        Task DeleteData(List<string> ids);

    }

    public class BTB_GoodsTypDtos
    {
        /// <summary>
        /// 分类id
        /// </summary>

        public String id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建者id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public String TypeName { get; set; }

        /// <summary>
        /// 父级id
        /// </summary>
        public String Parent { get; set; }
    }

}